#include<reg52.h>
#include"beep.h"

sbit temp=P2^2;

main()
{
  while(1)
  {
    if(temp==1)
	beep_ctl(1);
	else
	beep_ctl(0);
  }
}

